package config;

import org.springframework.web.bind.WebDataBinder;
import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.annotation.InitBinder;
import org.springframework.web.bind.annotation.ModelAttribute;

@ControllerAdvice
public class MyControllerAdviceBean
{

	@ModelAttribute
	public String maa()
	{
		return "maml";
	}

	@InitBinder
	public void mybind(WebDataBinder binder)
	{
		System.out.println("MyControllerAdviceBean:" + binder);
	}
}
